﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddHotel.aspx.vb" Inherits="HatHotels.AddHotel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style1
    {
        width: 79%;
    }
    .style2
    {
            width: 172px;
            text-align: left;
        }
        .style3
        {
            text-align: left;
        }
        .style4
        {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
    Add a New Hotel</h2>
    <br />
    <table class="style1" align="center">
            <tr>
                <td class="style2">Hotel Name</td>
                <td class="style3"><asp:TextBox ID="tb_HotelName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="style2">Location</td>
                <td class="style3"><asp:TextBox ID="tb_Location" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="style2">Stars</td>
                <td class="style3"><asp:TextBox ID="tb_Stars" runat="server"></asp:TextBox>&nbsp;
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        Operator="DataTypeCheck" Type="Integer" 
                                ControlToValidate="tb_Stars"   ErrorMessage="Value must be number" 
                        style="color: #FF0000" />
                </td>
            </tr>
            <tr>
                <td class="style2">PostCode</td>
                <td class="style3"><asp:TextBox ID="tb_PostCode" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="style2">ContactDetails</td>
                <td class="style3"><asp:TextBox ID="tb_ContactDetails" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="style2">HotelUrl</td>
                <td class="style3"><asp:TextBox ID="tb_HotelUrl" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="style2">Description</td>
                <td class="style3"><asp:TextBox ID="tb_Description" runat="server" Height="102px" TextMode="MultiLine" Width="461px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">Picture</td>
                <td class="style3"><asp:FileUpload ID="f_Picture" runat="server" /></td>
            </tr>
        </table>
        <br />
    </p>
    <p class="style4">
        <asp:Button ID="btn_AddNewHotel" runat="server" Text="Add New Hotel" />
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</asp:Content>
